package com.totoro.tymapping.utils;

import org.bukkit.potion.PotionEffectType;

/**
 * @author Totoro
 * @version 0.1.0
 * @date 2025/8/13 - 16:37
 * @description
 **/
public class PotionEffectUtil {
    public static PotionEffectType getPotionEffectByName(String effectName) {
        // 检查输入是否为空
        if (effectName == null || effectName.trim().isEmpty()) {
            return null;
        }
        return PotionEffectType.getByName(effectName);
    }


}
